package cmd

import (
	"context"
	"github.com/gogf/gf/v2/os/gcmd"
	"miaoyu/internal/router"
)

/*
路由表生成动作，存放位置 根目录下面 route.map.txt文件
*/

var (
	Route = gcmd.Command{
		Name:  "main",
		Usage: "main",
		Brief: "start http server",
		Func: func(ctx context.Context, parser *gcmd.Parser) (err error) {
			maps := router.MakeRouteMap()
			router.WriteRouteMap(maps)
			return nil
		},
	}
)
